/*
* @Author: wanghongfucoder
* @Date:   2017-02-16 09:55:11
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-16 10:27:01
*/
import java.util.List;
import java.util.ArrayList;

class CriterialFemale implements Criteria {
	public List<Person> meetCriterial(List<Person> persons){
		List<Person> femalepersons=new ArrayList<Person>();
		for ( Person person: persons ) {
			if (person.getGender().equalsIgnoreCase("FEMALE")) {
				femalepersons.add(person);
			}
		}
		return femalepersons;
	}
}